package cn.cy.behavior.command.general;

/**
 * @author yangxq
 * @Date 2025-05-08
 * @desc
 */
public class GeneralClient {

    public static void main(String[] args) {
        Light light = new Light();
        RemoteControl remoteControl = new RemoteControl(light);

        // 遥控器直接调用灯光操作
        remoteControl.pressTurnOnButton();
        remoteControl.pressIncreaseBrightnessButton();
        remoteControl.pressIncreaseBrightnessButton();
        remoteControl.pressDecreaseBrightnessButton();
        remoteControl.pressTurnOffButton();
    }

}
